package com.slw.emergency.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.slw.emergency.entity.Epidemic;
import com.slw.emergency.model.ResChinaCity;
import com.slw.emergency.model.ResChinaProvince;
import com.slw.emergency.model.RespCityEpidemic;
import com.slw.emergency.model.RespProvinceEpidemic;
import org.apache.ibatis.annotations.Param;

import javax.annotation.security.PermitAll;
import java.util.List;
import java.util.Map;

public interface EpidemicMapper extends BaseMapper<Epidemic> {
    Map<String, Long> getChinaTotal(@Param("date") String date);
    List<String> getDateList();
    List <RespProvinceEpidemic> getChinaProvince(@Param("date") String date);
    List<ResChinaCity> getChinaCity(@Param("province") String province, @Param("date") String date) ;
    ResChinaCity getOneCity(@Param("city") String city,@Param("date") String date);

}
